<%@ page contentType="text/html; charset=UTF-8" language="java"  errorPage="" %>
<%@ page import="java.text.*" %>
<%@ page import="java.util.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
BODY{
	BACKGROUND-COLOR: #ffffff;
	font-size:9pt;
	margin-top: 3px;
}
-->
</style>

<SCRIPT language=javascript>
function check()
{
	var strFileName=form1.FileName.value;
	var FileType;
	var ImgWH;
	if (strFileName=="")
	{
    	alert("请选择要上传的文件");
    	return false;
  	}
  /*	else
  	{
		FileType=strFileName.substr(strFileName.length-3)
		FileType=FileType.toLowerCase();
		if (!(FileType=="jpg" || FileType=="bmp" || FileType=="gif" || FileType=="png" ))
		{
                  alert("请上传图片文件!");
                  return false
		}

  	}*/
}
function insertHtml(HtmlCode)
{
  var win=parent.Composition.document;//其中编辑区域是gledit.jsp中的一个iframe，id是idEditbox
  parent.Composition.focus();//是编辑器获得焦点，防止代码插入在编辑器外地方
win.selection.createRange().pasteHTML(HtmlCode)//在光标的位置插入html代码
}

-->
</SCRIPT>
</head>
<body leftmargin="0">

<form action="SimpleUpload.jsp" method="post" name="form1" onSubmit="return check()" enctype="multipart/form-data">
  <input name="FileName" type="FILE" class="tx1" size="33">
   <input type="hidden" name="todo" value="upload">
  <input type="submit" name="Submit" value="上传" style="border:1px double rgb(88,88,88);font:9pt">

</form>

</body>
</html>
